Skip to content

Add AppIcon tests#4615

Merged
bgoncal merged 1 commit intomainfrom
codex/daily-test-coverage-improvement
May 8, 2026
Merged

Add AppIcon tests#4615
bgoncal merged 1 commit intomainfrom
codex/daily-test-coverage-improvement

Conversation

@bgoncal
Copy link
Copy Markdown
Member

@bgoncal bgoncal commented May 7, 2026

Summary

  • Add unit coverage for AppIcon title mapping across all cases
  • Verify darkIcon behavior for shared and per-icon assets
  • Cover debug default-selection behavior for isDefault and iconName

@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@b516cb8). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4615   +/-   ##
=======================================
  Coverage        ?   43.80%           
=======================================
  Files           ?      278           
  Lines           ?    16943           
  Branches        ?        0           
=======================================
  Hits            ?     7422           
  Misses          ?     9521           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bgoncal bgoncal marked this pull request as ready for review May 8, 2026 09:10
Copilot AI review requested due to automatic review settings May 8, 2026 09:10
@bgoncal bgoncal merged commit 819feff into main May 8, 2026
15 checks passed
@bgoncal bgoncal deleted the codex/daily-test-coverage-improvement branch May 8, 2026 09:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds unit tests to validate AppIcon behavior, focusing on title availability, dark-mode asset selection, and default icon selection logic based on app configuration.

Changes:

  • Added a test ensuring all AppIcon cases return a non-empty title.
  • Added tests for darkIcon mapping for shared vs per-icon dark assets.
  • Added a test covering .debug default icon selection behavior (isDefault / iconName).

Comment on lines +6 to +10
@Test func testAllIconsHaveLocalizedTitles() async throws {
#expect(AppIcon.allCases.count == 25)

for icon in AppIcon.allCases {
#expect(icon.title.isEmpty == false, "\(icon.rawValue) should have a localized title")
}

@Test func testDebugConfigurationSelectsDevAsDefaultIcon() async throws {
#expect(Current.appConfiguration == .debug)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants